package com.embracesource.plugin.notes;

import com.embracesource.plugin.common.CompanyInfo;
import com.intellij.ide.util.PropertiesComponent;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.ui.Messages;

public class SetAuthor extends AnAction {

    @Override
    public void actionPerformed(AnActionEvent event) {
        PropertiesComponent instance = PropertiesComponent.getInstance();
        String author = Messages.showInputDialog(CompanyInfo.NAME, "Author", Messages.getQuestionIcon());
        instance.setValue("embracesource.notes.author", author);
    }
}
